#include "Producer.h"
#include "Consumer.h"
#include "TaskQueue.h"
#include <iostream>
#include <thread>
using namespace std;

int main()
{
    Producer pr;
    Consumer co;

    TaskQueue taskQue(10);

    thread pro(&Producer::produce, &pr, ref(taskQue));
    thread con(&Consumer::consume, &co, ref(taskQue));
    pro.join();
    con.join();

    return 0;
}